Skip to content

fix(id): reserve numeric archive names - #4741

Merged
dezren39 merged 2 commits into
mainfrom
queue/6711-4720-archive-name-reservation
Nov 4, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/6711-4720-archive-name-reservation

Conversation

@dezren39

@dezren39 dezren39 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Reserve the all-ASCII-digit archive tag spelling at the shared FileOps::validate_name boundary. Put, rename, and copy now return a clear ReservedArchiveName error; nonnumeric lookalikes remain valid. Rename/copy web handlers return a bad-request response for this user error.

put ───────────────────────────┐
rename/copy → validate_target → validate_name → ReservedArchiveName

Evidence

  • Before: validate_name accepted archive-shaped user names, allowing them to collide with archive tags.
  • After: regression coverage rejects put/rename/copy against an existing archive and verifies its hash is unchanged; nonnumeric controls remain accepted.
  • Verified: from pkgs/id, all three packet test filters passed; cargo check -p id --features web --lib passed.

Merge Danger

Door: Two-way — revertable validation change.

Blast Radius: Low — only reserves names that readers/deletion already interpret as archives.

Closes #4720


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 3, 2026 02:46
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 4 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d9e9972-c3d1-4a12-8584-fa869a5adb77
Commits

Reviewing files that changed from the base of the PR and between 4a29ec8 and 2060998.

Files selected for processing: 3
  • pkgs/id/src/fileops.rs
  • pkgs/id/src/protocol.rs
  • pkgs/id/src/web/routes.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T02:48:31.744109Z 2060998 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

dezren39 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Return before merge — concrete correctness and CI blockers on head 2060998.

  1. Reader mismatch / data loss: FileOps archive detection and deletion accept any nonempty ASCII-digit suffix, while web classify_tag requires u64 parsing. The validator now rejects report.archive.18446744073709551616, but a legacy file of that shape is still collected by delete("report") and rendered as a primary file. Align validation, classification, and deletion semantics; add an over-range regression test.
  2. No package CI evidence: raw check-runs contain only CodeRabbit's neutral review-limit result; commit statuses are empty and there is no test workflow run. The id and nix ci workflows are disabled manually, and id-check.yml has no pull_request trigger despite the documented id PR tier. The PR helper's SUCCESS 1/1 rollup is not a test pass.

Codex's summary says its review completed for this head; feedback has no actionable review findings. Please resolve both blockers and rerun policy-listed CI before requesting merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant